<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
		<button type="default" @click="getDatas">网络请求都好好的哈</button>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
			getDatas() {
				uni.request({
					url: "https://elm.cangdu.org/v1/cities?type=guess",
					dataType:"json",
				}).then(data => {
					console.log(data)
				})
			}
		}
	}
</script>

<style lang="scss">
 @import "uview-ui/index.scss";
</style>
